package com.hongxun.design.sqlite.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.j256.ormlite.field.DatabaseField;

/**
 * Created by admin on 2018/5/3.
 */

public class Bj implements Parcelable{
    @DatabaseField(id = true, useGetSet = true)
    private String guid;//key
    @DatabaseField(useGetSet = true)
    private String code;
    @DatabaseField(useGetSet = true)
    private String name;
    @DatabaseField(useGetSet = true)
    private String address;
    @DatabaseField(useGetSet = true)
    private String type;
    @DatabaseField(useGetSet = true)
    private String bx_code;
    @DatabaseField(useGetSet = true)
    private String bj_code;
    @DatabaseField(useGetSet = true)
    private String factory_code;
    @DatabaseField(useGetSet = true)
    private String phone;
    @DatabaseField(useGetSet = true)
    private String old_count;
    @DatabaseField(useGetSet = true)
    private String bx_new_code;
    @DatabaseField(useGetSet = true)
    private String bj_new_code;
    @DatabaseField(useGetSet = true)
    private String factory_new_code;
    @DatabaseField(useGetSet = true)
    private String t_jx;
    @DatabaseField(useGetSet = true)
    private String new_count;
    @DatabaseField(useGetSet = true)
    private String new_factory;
    @DatabaseField(useGetSet = true)
    private String h;
    @DatabaseField(useGetSet = true)
    private String l;
    @DatabaseField(useGetSet = true)
    private String bx_id;
    @DatabaseField(useGetSet = true)
    private String proId;
    @DatabaseField(useGetSet = true)
    private String num;//表号
    @DatabaseField(useGetSet = true)
    private String new_num;
    @DatabaseField(useGetSet = true)
    private String factory_name;
    @DatabaseField(useGetSet = true)
    private String status;//0,手动新增。1，选择新增。


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.guid);
        dest.writeString(this.code);
        dest.writeString(this.name);
        dest.writeString(this.address);
        dest.writeString(this.type);
        dest.writeString(this.bx_code);
        dest.writeString(this.bj_code);
        dest.writeString(this.factory_code);
        dest.writeString(this.phone);
        dest.writeString(this.old_count);
        dest.writeString(this.bx_new_code);
        dest.writeString(this.bj_new_code);
        dest.writeString(this.factory_new_code);
        dest.writeString(this.t_jx);
        dest.writeString(this.new_count);
        dest.writeString(this.new_factory);
        dest.writeString(this.h);
        dest.writeString(this.l);
        dest.writeString(this.bx_id);
        dest.writeString(this.proId);
        dest.writeString(this.num);
        dest.writeString(this.new_num);
        dest.writeString(this.factory_name);
        dest.writeString(this.status);
    }

    public Bj() {
    }

    protected Bj(Parcel in) {
        this.guid = in.readString();
        this.code = in.readString();
        this.name = in.readString();
        this.address = in.readString();
        this.type = in.readString();
        this.bx_code = in.readString();
        this.bj_code = in.readString();
        this.factory_code = in.readString();
        this.phone = in.readString();
        this.old_count = in.readString();
        this.bx_new_code = in.readString();
        this.bj_new_code = in.readString();
        this.factory_new_code = in.readString();
        this.t_jx = in.readString();
        this.new_count = in.readString();
        this.new_factory = in.readString();
        this.h = in.readString();
        this.l = in.readString();
        this.bx_id = in.readString();
        this.proId = in.readString();
        this.num = in.readString();
        this.new_num = in.readString();
        this.factory_name = in.readString();
        this.status = in.readString();
    }

    public static final Creator<Bj> CREATOR = new Creator<Bj>() {
        @Override
        public Bj createFromParcel(Parcel source) {
            return new Bj(source);
        }

        @Override
        public Bj[] newArray(int size) {
            return new Bj[size];
        }
    };

    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBx_code() {
        return bx_code;
    }

    public void setBx_code(String bx_code) {
        this.bx_code = bx_code;
    }

    public String getBj_code() {
        return bj_code;
    }

    public void setBj_code(String bj_code) {
        this.bj_code = bj_code;
    }

    public String getFactory_code() {
        return factory_code;
    }

    public void setFactory_code(String factory_code) {
        this.factory_code = factory_code;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getOld_count() {
        return old_count;
    }

    public void setOld_count(String old_count) {
        this.old_count = old_count;
    }

    public String getBx_new_code() {
        return bx_new_code;
    }

    public void setBx_new_code(String bx_new_code) {
        this.bx_new_code = bx_new_code;
    }

    public String getBj_new_code() {
        return bj_new_code;
    }

    public void setBj_new_code(String bj_new_code) {
        this.bj_new_code = bj_new_code;
    }

    public String getFactory_new_code() {
        return factory_new_code;
    }

    public void setFactory_new_code(String factory_new_code) {
        this.factory_new_code = factory_new_code;
    }

    public String getT_jx() {
        return t_jx;
    }

    public void setT_jx(String t_jx) {
        this.t_jx = t_jx;
    }

    public String getNew_count() {
        return new_count;
    }

    public void setNew_count(String new_count) {
        this.new_count = new_count;
    }

    public String getNew_factory() {
        return new_factory;
    }

    public void setNew_factory(String new_factory) {
        this.new_factory = new_factory;
    }

    public String getH() {
        return h;
    }

    public void setH(String h) {
        this.h = h;
    }

    public String getL() {
        return l;
    }

    public void setL(String l) {
        this.l = l;
    }

    public String getBx_id() {
        return bx_id;
    }

    public void setBx_id(String bx_id) {
        this.bx_id = bx_id;
    }

    public String getProId() {
        return proId;
    }

    public void setProId(String proId) {
        this.proId = proId;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getNew_num() {
        return new_num;
    }

    public void setNew_num(String new_num) {
        this.new_num = new_num;
    }

    public String getFactory_name() {
        return factory_name;
    }

    public void setFactory_name(String factory_name) {
        this.factory_name = factory_name;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
